import service from '@/utils/request'

// @Tags SysTag
// @Summary 创建SysTag
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysTag true "创建SysTag"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysTag/createSysTag [post]
export const createSysTag = (data) => {
     return service({
         url: "/sysTag/createSysTag",
         method: 'post',
         data
     })
 }


// @Tags SysTag
// @Summary 删除SysTag
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysTag true "删除SysTag"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysTag/deleteSysTag [delete]
 export const deleteSysTag = (data) => {
     return service({
         url: "/sysTag/deleteSysTag",
         method: 'delete',
         data
     })
 }

// @Tags SysTag
// @Summary 删除SysTag
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除SysTag"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysTag/deleteSysTag [delete]
 export const deleteSysTagByIds = (data) => {
     return service({
         url: "/sysTag/deleteSysTagByIds",
         method: 'delete',
         data
     })
 }

// @Tags SysTag
// @Summary 更新SysTag
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysTag true "更新SysTag"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysTag/updateSysTag [put]
 export const updateSysTag = (data) => {
     return service({
         url: "/sysTag/updateSysTag",
         method: 'put',
         data
     })
 }

// @Tags SysTag
// @Summary 用id查询SysTag
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysTag true "用id查询SysTag"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysTag/findSysTag [get]
 export const findSysTag = (params) => {
     return service({
         url: "/sysTag/findSysTag",
         method: 'get',
         params
     })
 }


// @Tags SysTag
// @Summary 分页获取SysTag列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取SysTag列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysTag/getSysTagList [get]
 export const getSysTagList = (params) => {
     return service({
         url: "/sysTag/getSysTagList",
         method: 'get',
         params
     })
 }

 // 获取已审核的标签
export const getSysTags = (params) => {
    return service({
        url: "/sysTag/getSysTags",
        method: 'get',
        params
    })
}
